package com.shensi.adminCollect.domain.coupon;

import com.shensi.adminCollect.common.annotation.Excel;
import com.shensi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 发放方式，优惠劵信息对象 coupon_issue_relation
 *
 * @author qujia
 * @date 2021-08-13
 */
public class CouponIssueRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 优惠劵发放方式主键id */
    @Excel(name = "优惠劵发放方式主键id")
    private String issueId;

    /** 优惠劵表主键id */
    @Excel(name = "优惠劵表主键id")
    private Long couponId;

    /** 发放方式的门槛 */
    @Excel(name = "发放的门槛")
    private BigDecimal thresholdAmt;

    /**   优惠卷的集合    */
    @Excel(name = "优惠卷的集合")
    private String infos;

    public String getInfos() {
        return infos;
    }

    public void setInfos(String infos) {
        this.infos = infos;
    }

    public BigDecimal getThresholdAmt() {
        return thresholdAmt;
    }

    public void setThresholdAmt(BigDecimal thresholdAmt) {
        this.thresholdAmt = thresholdAmt;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setIssueId(String issueId)
    {
        this.issueId = issueId;
    }

    public String getIssueId()
    {
        return issueId;
    }
    public void setCouponId(Long couponId)
    {
        this.couponId = couponId;
    }

    public Long getCouponId()
    {
        return couponId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("issueId", getIssueId())
                .append("couponId", getCouponId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
